<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<%@ page import="com.lmpop.trade.ts_category.*" %>
<%@ page import="com.lmpop.trade.tb_commpara.Tb_commparaInfo" %>
<%@ page import="com.lmpop.trade.ti_relanguage.*" %>
<jsp:useBean id="randomId" class="com.lmpop.frame.util.RandomID" scope="page" /> 
<%
	String lang_id = randomId.GenTradeId();

	String resume_id="";
  	if(request.getParameter("resume_id")!=null) resume_id = request.getParameter("resume_id");
	
	Tb_commparaInfo tb_commparaInfo = new Tb_commparaInfo(); 
	String lang_type = tb_commparaInfo.getSelectItem("50","");
	String rw_type = tb_commparaInfo.getSelectItem("51","");
	

	String cust_id="",publish_user_id="";
	if(session.getAttribute("session_cust_id")!=null){
		cust_id  = session.getAttribute("session_cust_id").toString();
	}
	if(session.getAttribute("session_user_id")!=null){
		publish_user_id  = session.getAttribute("session_user_id").toString();
	}

	Ti_relanguageInfo relang = new Ti_relanguageInfo();
	Ti_relanguage langp = new Ti_relanguage();
	langp.setResume_id(resume_id);
	List langList = relang.getListByPage(langp,0,100);

	Map langTypeMap = tb_commparaInfo.getMapByParaAttr("50");
	Map rwMap = tb_commparaInfo.getMapByParaAttr("51");
%>
<html>
  <head>
    <title>修改语言能力</title>
	<link href="/program/admin/index/css/style.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="biz.js"></script>
	<script type="text/javascript" src="/js/jquery.js"></script>
</head>

<body>
	<h1>修改语言能力</h1>
	
	<table width="100%" align="center" cellpadding="0" cellspacing="0" class="dl_so">
        <tr>
          <td width="91%" align="left">
		  <span><a href="updateInfo.jsp?resume_id=<%=resume_id%>">修改基本资料</a></span>
		  <span><a href="updateLanguage.jsp?resume_id=<%=resume_id%>" style="color:#ED7C01;">修改语言能力</a></span>
		  <span><a href="updateexperience.jsp?resume_id=<%=resume_id%>">修改工作经历</a></span>
		  </td>
        </tr>
      </table>
      <br/>


	
	<form action="/doTradeReg.do" method="post" name="addForm">


	<table width="100%" cellpadding="1" cellspacing="1" class="listtab" border="0">

		<%
			if(langList!=null && langList.size()>0){
				for(int i=0;i<langList.size();i++){
		  			Hashtable map = (Hashtable)langList.get(i);
					String lang_id_para="",lang_type_para="",rw_type_para="",ls_type_para="";
					String lang_type_para_dis = "",rw_type_para_dis="",ls_type_para_dis="";

		  			if(map.get("lang_id")!=null) lang_id_para = map.get("lang_id").toString();
					if(map.get("lang_type")!=null) lang_type_para = map.get("lang_type").toString();
					if(!lang_type_para.equals("") && langTypeMap!=null && langTypeMap.get(lang_type_para)!=null){
						lang_type_para_dis = langTypeMap.get(lang_type_para).toString();
					}
					if(map.get("rw_type")!=null) rw_type_para = map.get("rw_type").toString();
					if(!rw_type_para.equals("") && rwMap!=null && rwMap.get(rw_type_para)!=null){
						rw_type_para_dis = rwMap.get(rw_type_para).toString();
					}
					if(map.get("ls_type")!=null) ls_type_para = map.get("ls_type").toString();
					if(!ls_type_para.equals("") && rwMap!=null && rwMap.get(ls_type_para)!=null){
						ls_type_para_dis = rwMap.get(ls_type_para).toString();
					}
		%>

				<tr>
					<td><%=lang_type_para_dis%></td>
					
					<td><%=rw_type_para_dis%></td>

					<td><%=ls_type_para_dis%></td>

					<td width="5%"><a href="/doTradeReg.do?pkid=<%=lang_id_para%>&bpm_id=6329"><img src="/program/admin/images/delete.gif" title="删除" /></a></a></td>
				</tr>

		<%
				}
			}
			
		%>

		
	</table>
	
	<table width="100%" cellpadding="0" cellspacing="1" border="0" class="listtab">
		

		

		<tr>
			<td  colspan="6">
		   &nbsp;&nbsp;<img src="/program/admin/images/infotip.gif" border="0">&nbsp;&nbsp;
		   <span style="font-size:14px;font-weight:bold;">语言能力（<font color="red">*</font>为必填项）</span>			
		   </td>
		</tr>

		
		<tr>
		  <td align="right" width="20%">外语语种<font color="red">*</font></td>	   
		  <td width="10%">
			 <select name="lang_type" id="lang_type">
				<%=lang_type%>
			 </select>	
		  </td>
		  <td width="10%" align="right">读写能力<font color="red">*</font></td>
		  <td width="10%">
			 <select name="rw_type" id="rw_type">
				<%=rw_type%>
			 </select>	  
		  </td>

		  <td width="10%" align="right">听说能力<font color="red">*</font></td>
		  <td width="40%">
			 <select name="ls_type" id="ls_type">
				<%=rw_type%>
			 </select>	  
		  </td>
		</tr>

		
	</table>
	
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center">
				<input type="hidden" name="bpm_id" value="2757" />
				<input type="hidden" name="jumpurl" id="jumpurl" value="" />
				<input type="hidden" name="cust_id" id="cust_id" value="<%=cust_id%>" />
				<input type="hidden" name="resume_id" id="resume_id" value="<%=resume_id%>" />
				<input type="hidden" name="lang_id" id="lang_id" value="<%=lang_id%>" />
				<input type="hidden" name="user_id" id="user_id" value="<%=publish_user_id%>" />
				<input type="button" class="buttoncss" name="Submit3" value="提交" style="cursor:pointer;" onclick="addLang(1)" />
			</td>
		</tr>
	</table>
	</form>
</body>

</html>
